<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
    function page(n,s){
        $("#pageNo").val(n);
        $("#pageSize").val(s);
        $("#searchForm").submit();
        return false;
    }

    <%--function hideDiv(){--%>
        <%--hideShowTableTd('contentTable','8,9,10,11','2');--%>
        <%--$("#LeftDiv").attr("class","main-content col-lg-8");--%>
        <%--$("#RightDiv").show('normal');--%>
    <%--}--%>
    <%--/**--%>
    <%--*添加主表--%>
    <%--* @param id--%>
    <%--* @returns {*}--%>
     <%--*/--%>
    <%--function addClinic(showDiv,url){--%>
        <%--hideDiv();--%>
        <%--return loadDiv('rigthCenterDiv','${ctx}/template/doctorTempla/formTreat?id='+id);--%>
    <%--}--%>



</script>

            <div class="panel-body">
                <section class="main-content col-lg-12" id="LeftDiv">
                <div class="table-responsive no-border">
                    <div class="datatable-top">
                        <div class="pull-left">
                            <%--<form:form id="searchForm" modelAttribute="doctorTempla"  onsubmit="return loadDivForm('mainCenterDiv','searchFormDict','${ctx}/template/doctorTempla/index');" method="post" class="form-inline">--%>
                                <%--<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>--%>
                                <%--<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>--%>
                                    <%--<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>--%>
                            <%--</form:form>--%>
                            <input  class="btn btn-new" onclick="addClinic('rigthCenterDiv','${ctx}/template/doctorTempla/formTreat?type=0&id=')" type="button" value="新增" id="addClinic"/>

                        </div>
                    </div>
                    <table id="contentTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th style="display:none">id</th>
                            <th>序号</th>
                            <th>主题</th>
                            <th>子标题</th>
                            <th>范围</th>
                            <th>科室</th>
                            <th>类型</th>
                            <th>诊断描述</th>
                            <th>建议</th>
                            <th>创建人</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${pageApply}" var="doctorTempla" varStatus="count">
                            <tr onclick="addSubProjectDiv('treatProjectItem','${ctx}/treatProjectItem/treatProjectItem/indexTreat?type=0&id=${doctorTempla.id}')">
                                <td style="display:none">${doctorTempla.id}</td>
                                <td> ${count.index+1}</td>
                                <td> ${doctorTempla.title}</td>
                                <td> ${doctorTempla.subTitle}</td>
                                <td> ${fns:getDictLabels(doctorTempla.flag, 'TEMPLA_FLAG', '')}</td>
                                <td> ${fns:getDeptName(doctorTempla.deptCode,'')}</td>
                                <td> ${fns:getDictLabels(doctorTempla.projectType,'TEMPLA_GENRE','')}</td>
                                <td> ${doctorTempla.advice}</td>
                                <td> ${doctorTempla.diagnosis}</td>
                                <td> ${doctorTempla.name}</td>
                                <td>
                                    <a href="#" onclick="addClinic('rigthCenterDiv','${ctx}/template/doctorTempla/formTreat?type=0&id=${doctorTempla.id}')"  class="btn btn-success btn-xs">修改</a>
                                    <a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该吗？',function(){delLoad('mainCenterDiv','${ctx}/template/doctorTempla/delete?id=${doctorTempla.id}','${ctx}/template/doctorTempla/indexTreat?type=0')})">删除</a>
                                </td>
                            </tr>
                        </c:forEach>

                    </table>
                    <div class="pagination">${page}</div>
                </div>
                    </section>

                <section class="main-content col-lg-4" style="display: none" id="RightDiv">
                    <div class="content-wrap" id="rigthCenterDiv">
                    </div>
                </section>
            </div>

